<template>
  <view class="richview-wrapper">
    <view class="richview">
      <web-view class="rich" :src="url"></web-view>
    </view>
  </view>
</template>

<script>
  export default {
    onLoad(option) {
      this.url = `${option.url}?${decodeURIComponent(option.params)}`
    },
    data() {
      return {
        url: ''
      }
    }
  }
</script>

<style lang="scss">
  .richview {
    width: 100%;
    height: auto;
    background-color: #fff;
  }
  .rich {
    width: 100%;
    height: 100%;
  }
  .richview-wrapper {
    width: 100%;
    height: 100%;
    .icon-back {
      position: fixed;
      left: 20rpx;
      top: 20rpx;
      width: 84rpx;
      height: 84rpx;
      z-index: 9999;
    }
  }
</style>
